From: Colin Walters Date: Wed, 3 Dec 2008 19:24:50 +0000 (+0000) Subject: Bind Escape to clear search entry X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~11529 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=6bd31dd211a298e8f03eb52df9b4460e831eda66;p=gnome-shell.git Bind Escape to clear search entry svn path=/trunk/; revision=112 --- diff --git a/js/ui/overlay.js b/js/ui/overlay.js index 423b10efd..30028cda6 100644 --- a/js/ui/overlay.js +++ b/js/ui/overlay.js @@ -86,7 +86,10 @@ Sideshow.prototype = { }); this._searchEntry.connect('key-press-event', function (se, e) { let code = e.get_code(); - if (code == 111) { + if (code == 9) { + me._searchEntry.text = ''; + return true; + } else if (code == 111) { me._appdisplay.selectUp(); return true; } else if (code == 116) {